<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="d" uri="/WEB-INF/mytag/popuptable.tld"%>
    <%@ taglib prefix="b" uri="/WEB-INF/mytag/buttons.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MessageAdd</title>
<jsp:include page="/pages/common.jsp" />

<script type="text/javascript" charset="utf-8"
	src="/VOTE/utf8-jsp/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/VOTE/utf8-jsp/ueditor.all.js"></script>
<script type="text/javascript" src="/VOTE/static/project/vote/votedetail.js"></script>
<style type="text/css">
	body{
		padding-top: 10px;
		padding-left:30px;
		padding-right:10px;
	}

</style>
</head>
<body id="body-messageadd">
	<div class="easyui-layout" data-options="fit:true">
		<form id="editForm" method="post" enctype="multipart/form">
			<input type="hidden" name="id" value="${voteDetail.id}">
			<input type="hidden" name="voteid" value="${voteDetail.voteid}" id="edit-voteid">
			<input type="hidden" name="qty" value="${voteDetail.qty}">
			<input type="hidden" name="image" value="${voteDetail.image}">
			<div data-options="region:'north',border:false" style="padding:10px;">
				<table>
					<tr>
						<td><label for="title">标题:</label></td>
						<td><input class="easyui-validatebox" type="text" name="title" required="true" style="width:200%;" value="${voteDetail.title}"></input></td>
						<td><input type="submit" class="btn btn-myself" value="提交" style="margin-left:400px;margin-top:-10px;"></td>
						<td><input type="button" class="btn btn-myself" value="返回" style="margin-right:5px;margin-top:-10px;" id="btn-return-edit"></td>
					</tr>
				</table>
			</div>
			<div data-options="region:'center',border:false" style="text-align:center;padding:5px;">
				<script id="editor" type="text/plain"
					style="width:100%;height:75%;" name="descript">${voteDetail.descript}</script>
			</div>
		</form>
	</div>
	
	<script type="text/javascript">
		//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
		var ue = UE.getEditor('editor', {
			autoHeightEnabled: false,
			scaleEnabled: false
		});
		
	</script>
	
</body>
</html>